function getMonthName(month){
	var name = '';
	
	switch(month){
		case 0: name = 'Jan.';
		break;
		
		case 1: name = 'Feb.';
		break;
			
		case 2: name = 'March'; 
		break;
		
		case 3: name= 'April';
		break;
		
		case 4: name = 'May';
		break;
				
		case 5: name = 'June';
		break;
				
		case 6: name = 'July';
		break;
				
		case 7: name = 'Aug.';
		break;
				
		case 8: name = 'Sept.';
		break;
			
		case 9: name = 'Oct.';
		break;
				
		case 10: name = 'Nov.';
		break;
				
		case 11: name= 'Dec.';
		break;
				
		default: name = '';
		break;			
	}
	return name;
}

function getWeekdayName(day){
	var name = '';
	switch(day){
		case 0: name = 'Sunday';
		break;
		
		case 1: name = 'Monday';
		break;
		
		case 2: name = 'Tuesday';
		break;
		
		case 3: name = 'Wednesday';
		break;
		
		case 4: name = 'Thursday';
		break;
		
		case 5: name = 'Friday';
		break;
		
		case 6: name = 'Saturday';
		break;

		default: name = '';
		break;
	}
	return name;
}

// write out today's date as "Friday, June 8, 2001"
function writeTodayDate(){
	var day = new Date();
	var str = '';
	var month = getMonthName(day.getMonth());
	var weekday = getWeekdayName(day.getDay());
		
	str += weekday+', '+month+' '+day.getDate()+', '+day.getFullYear();
	document.write(str);
}